/* Custom font styling for the Linear App aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #000000;
    --color-background: #ffffff;
    --color-surface: #f9f9f9;
    --color-border: #e5e5e5;
    --color-text-primary: #0f0f0f;
    --color-text-secondary: #5a5a5a;
    --color-text-tertiary: #8c8c8c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Font for monospaced text */
.font-geist-mono {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
}

/* Step indicator styles */
.step-item.active .step-circle {
    background-color: black;
    color: white;
    border-color: black;
}

.step-item.completed .step-circle {
    background-color: black;
    color: white;
    border-color: black;
}

.step-line.active {
    background-color: black;
}

/* Card hover effects */
.business-goal-card:hover,
.region-card:hover,
.position-card:hover,
.platform-card:hover {
    border-color: black;
}

.business-goal-card.selected,
.region-card.selected,
.position-card.selected,
.platform-card.selected {
    border-color: black;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Table styling */
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 0.375rem;
    overflow: hidden;
}

th {
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
}

td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--color-border);
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Progress bar animations */
@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

.animate-progress {
    animation: progress 15s ease-in-out forwards;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#customer-detail-modal {
    animation: fadeIn 0.2s ease-out;
}

#customer-detail-modal > div {
    animation: slideIn 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step-item span {
        display: none;
    }
    
    .steps-container {
        justify-content: space-between;
    }
    
    .step-line {
        flex-grow: 0.5;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

/* Custom form elements styling */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: black;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

button {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
}

/* Checkbox custom styling */
input[type="checkbox"] {
    accent-color: black;
}

/* Range input custom styling */
input[type="range"] {
    -webkit-appearance: none;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: black;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: black;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Helper classes */
.hidden {
    display: none;
}

.card-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
